/*
 * Created By Visual Studio 2005
 * Create by: daqingshu
 * Create at: 2006-10-18 20:37:59{DATE}
 * Organization: BIT
 * 
 *
 */

using System;
using System.Collections.Generic;
using System.Text;
using Adge.Models;
using NHibernate.Expression;

namespace Adge.IDAL
{
    public interface IAdgeArBase<T>
    {
        bool Create(T info);
        bool Save(T info);
        bool Update(T info);
        bool Delete(object Id);
        T GetEntityById(object Id);
        T[] FindAll();
        T[] SlicedFindAll(int firstResult, int maxResults, Order[] orders, ICriterion[] criterias);
        bool DeleteAll();
    }
}
